//
//  InformationViewController.m
//  LOLVideoPlayer
//
//  Created by SXW on 16/3/25.
//  Copyright © 2016年 盛宣伟. All rights reserved.
//

#import "InformationViewController.h"
#import "AllViewController.h"
#import "TacticViewController.h"
#import "BeautyPicViewController.h"
#import "WeekFreeViewController.h"
#import "HalfPriceViewController.h"
#import "TalentViewController.h"

#import "SCNavTabBarController.h"
@interface InformationViewController ()

@end

@implementation InformationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"资讯";
    SCNavTabBarController *navgationTabBar = [[SCNavTabBarController alloc] init];
    AllViewController *all = [AllViewController new];
    all.title = @"全部";
    
    TacticViewController *tac = [TacticViewController new];
    tac.title = @"攻略";
    
    BeautyPicViewController *bea = [BeautyPicViewController new];
    bea.title = @"美图";
    
    WeekFreeViewController *week = [WeekFreeViewController new];
    week.title= @"周免";
    
    HalfPriceViewController *hl = [HalfPriceViewController new];
    hl.title = @"半价";

    TalentViewController *tal = [TalentViewController new];
    tal.title = @"天赋";
    
    navgationTabBar.subViewControllers = @[all,tac,bea,week,hl,tal];
    navgationTabBar.showArrowButton = NO;
    
    //根视图的整体背景色
    self.view.backgroundColor = [UIColor colorFromHexRGB:@"000000"];
    //滑动条的背景颜色
    navgationTabBar.navTabBarColor = [UIColor clearColor];
    [navgationTabBar addParentController:self];
}


- (void)viewWillAppear:(BOOL)animated{
    
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = NO;
}











@end
